@layout("/common/_form.html",{js:["/assets/modular/product/product_add.js"]}){

<form class="layui-form" id="productAddForm" lay-filter="productAddForm"   >
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card" >
            <div class="layui-card-header"></div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">产品名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="name" placeholder="请输入产品名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">产品分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <div class="layui-inline">
                                <select id="productTypeId" name="productTypeId" lay-verify="required">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">包装长度(mm)<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="length" name="length" placeholder="请输入包装长度" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">包装宽度(mm)<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="width" placeholder="请输入包装宽度" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">包装高度(mm)<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="height" placeholder="请输入包装高度" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">净重(g)<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="weight" placeholder="请输入净重" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">材料<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="material" placeholder="请输入材料" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">上下架<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <div class="layui-inline">
                                <select lay-verify="required" name="status">
                                    <option value="">请选择</option>
                                    <option value="1">上架</option>
                                    <option value="0">下架</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <label class="layui-form-label">产品属性<span style="color: red;">*</span></label>
                    <div class="layui-col-md12">
                        <table class="layui-table" id="productAttrTable" lay-filter="productAttrTable">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

<script type="text/html" id="toolbar">
    <div class="layui-input-inline">

        <!--需要监听表单行选择的，添加lay-event属性-->
        <button class="layui-btn" type="button" lay-event="add">增加</button>
        <button class="layui-btn" type="button" lay-event="del">删除</button>
    </div>
</script>
@}
